@use 'sass:map';

@use '@/assets/styles/common/var.scss' as *;
@use '@/assets/styles/mixins/_button.scss' as *;
@use '@/assets/styles/mixins/mixins.scss' as *;
@use '@/assets/styles/mixins/utils.scss' as *;
@use '@/assets/styles/mixins/_var.scss' as *;

@include b(medical-dynamic) {
    padding: $tts-space-a-sm;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid #FFFFFF;


    .header {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .user {
            display: flex;
            align-items: center;

            .avatar {
                position: relative;
                width: 88px;
                height: 88px;
                border-radius: 44px;
                //background-image: url("https://img1.baidu.com/it/u=1713520555,623151368&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500");
                background-color: $tts-bg-disabled;
                background-size: cover;

                .real {
                    position: absolute;
                    bottom: -5px;
                    right: -5px;
                    width: 25px;
                    height: 25px;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: 6px solid white;
                    border-radius: 20px;
                    background-color: white;
                }
            }

            .name {
                font-size: 28px;
                font-weight: 600;
                line-height: 50px;
                color: $tts-text-main;
                padding-left: 30px;

                .subtitle {
                    font-size: 20px;
                    font-weight: 400;
                    line-height: 38px;
                    color: $tts-text-assist;

                    .IP {
                        //color: $tts-main-color;
                        //font-weight: 800;
                    }
                }
            }
        }

        .more {
            width: 45px;
            height: 45px;
            text-align: center;
        }
    }

    .main {
        .content {
            font-size: 26px;
            line-height: 2;

            .text, .theme {
                margin: $tts-space-a-sm 0;
            }

            .theme {
                display: grid;
                grid-gap: $tts-space-a-xs;
                grid-template-columns: repeat(3, 1fr);

                &.theme-1 {
                    .theme-item {
                        width: 500px !important;
                        min-height: 500px !important;
                        max-height: 700px !important;
                    }
                }

                &.theme-2 {
                    grid-template-columns: repeat(2, 1fr);
                    .theme-item {
                        width: 339px !important;
                        height: 339px !important;
                        overflow: hidden;
                    }
                }

                .theme-item {
                    width: 223.33333px;
                    height: 223.33333px;
                    overflow: hidden;

                    .image {
                        width: 100%;
                        height: 100%;
                        display: flex;
                    }
                }
            }
        }
    }

    .footer {
        border-top: 1px solid $tts-border-line;
        padding: $tts-space-a-sm 0;

        .operation {
            height: 100%;
            font-size: 22px;
            display: grid;
            grid-template-columns: repeat(4, 1fr);

            .operation-item {
                position: relative;
                text-align: center;
                display: flex;
                align-items: center;
                justify-content: center;
                color: $tts-text-assist;

                .flex {
                    display: flex;
                    align-items: center;
                }

                .num {
                    padding-left: 10px;
                    font-size: 22px;
                }
            }
        }
    }

    .icon {
        z-index: 9;
        position: absolute;
        width: 300px;
        height: 300px;
    }
}
